<template>
	<scroll-view scroll-y="true"
		:style="{'height': `calc(100vh - 50px - 83rpx - 74rpx - 5rpx - ${titleHeight}px - ${tabbarHeight}  - env(safe-area-inset-bottom))`}">
		<view class="search">
			<u-search placeholder="请输入关键字搜索动态" v-model="qurey.search" :show-action="false" :disabled="false" @change="chan()" @search="find()"></u-search>
		</view>
		<Activity v-for="item in list" :key="item.activityId" :item="item"></Activity>
	</scroll-view>
</template>

<script>
	import Activity from '@/components/activity/activity.vue'
	export default {
		comments:{
			Activity
		},
		data() {
			return {
				recommended:[],
				qurey: {
					search: ''
				}
			}
		},
		methods: {
			//搜索框内容变化
			async chan() {
				let {data: item} = await this.$get('/attentionList/search',this.qurey)
			},
			//搜索事件
			async find() {
				let {data: item} = await this.$get('/attentionList/search',this.qurey)
			},
			
		}
	}
</script>

<style>
</style>
